﻿using System;

namespace RealtyReview.Business.Models.ViewModels
{
    public class MessageViewModel
    {
        public string Title { get; set; }
        public string Message { get; set; }
        public string From { get; set; }
		public string FromUrl { get; set; }
		public string To { get; set; }
		public string ToUrl { get; set; }

		public DateTime DateCreated { get; set; }

        public string GetMessagePreview
        {
            get { return Message.Substring(0, 30) + "..."; }
        }

        public string GetCreatedDatePreview
        {
            get { return DateCreated.ToShortDateString() + " " + DateCreated.ToShortTimeString(); }
        }
    }
}